<%-- 
    Document   : loginUsuario
    Created on : 7/06/2013, 11:03:52 PM
    Author     : Rubén
--%>

<%@taglib prefix="spring"  uri ="http://www.springframework.org/tags" %>
<%@taglib prefix="form"  uri ="http://www.springframework.org/tags/form" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Login usuario</title>
        <link rel="stylesheet" href="css/style.css" type="text/css" media="all">
    </head>
    <body>
       
        
           <%--     <spring:nestedPath path="name"> --%>
         <%--      <form:form method="POST" commandName="registroUsuario"> --%>
         <form:form method="POST" action="loginUsuario.htm">
                 <%--   <form action="registro.jsp"> --%>

                 <div align="center">
                 <table>
                     <tr>
                         <td><form:label path="correoElectronico"><strong>Correo electrónico:</strong></form:label></td>
                         <td><form:input path="correoElectronico" /></td> 
                     </tr>

                     <tr>
                         <td><form:label path="contrasena"><strong>Contrasena:</strong></form:label></td>
                         <td><form:password path="contrasena" /></td>
                     </tr>

                     <tr>
                         <td colspan="2" align="center">
                             <input type="submit" value="ingresar usuario"/>
                         </td>
                     </tr>
                 </table>
         </div>
                     
                     <form

                     <%--   </form> --%>
                 </form:form>
                 <%--      </spring:nestedPath> --%>
                 <%if (session.getAttribute("error") != null) {


                 %>
                 <h2><%=session.getAttribute("error")%> </h2>
             <%}%>
        
        
    </body>
</html>
